home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / angel_fr.swf / scripts / frame_4 / DoAction_5.as < prev    next >
Text File  |  2013-04-24  |  644b  |  28 lines

  1. var sound_flag = true;
  2. var pause_flag = false;
  3. var on_game_flag = false;
  4. var score = 0;
  5. plus_score = function(num)
  6. {
  7.    score += num;
  8.    secureMovie.varObj.encodeVars("s_score",this,num);
  9.    var _loc3_ = String(score).split("").reverse();
  10.    var _loc2_ = 0;
  11.    while(_loc2_ < _loc3_.length)
  12.    {
  13.       score_board["s" + _loc2_].gotoAndStop(parseInt(_loc3_[_loc2_]) + 1);
  14.       _loc2_ = _loc2_ + 1;
  15.    }
  16. };
  17. var sound_flag = true;
  18. sound_play = function(s_num, r_num, t_num)
  19. {
  20.    if(on_game_flag || t_num == 1)
  21.    {
  22.       if(sound_flag && !pause_flag)
  23.       {
  24.          this["so" + s_num].start(0,r_num);
  25.       }
  26.    }
  27. };
  28.